def w1(f):
    def inner(*args, **kwargs):
        ret = f(*args, **kwargs)
        print(ret, 'w1')
        return {
            'w1': ret
        }

    return inner


def w2(f):
    def inner(*args, **kwargs):
        ret = f(*args, **kwargs)
        print(ret, 'w2')
        return {
            'w2': ret
        }

    return inner


@w1
@w2
def test():
    print('test')
    return [1, 2]


test()
